package com.usian.behavior.controller;

import com.usian.apis.behavior.ApBehaviorEntryControllerApi;
import com.usian.behavior.service.ApBehaviorEntryService;
import com.usian.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ApBehaviorEntry")
public class ApBehaviorEntryController implements ApBehaviorEntryControllerApi {
    @Autowired
    ApBehaviorEntryService apBehaviorEntryService;

    @GetMapping("/findByUserIdOrEquipmentId/{userId}")
    @Override
    public ApBehaviorEntry findByUserIdOrEquipmentId(@PathVariable("userId") Integer userId){
        return apBehaviorEntryService.findByUserIdOrEquipmentId(userId,null);
    }
}
